package com.xuxin.baby.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by xu_xin
 * Created on 2020/11/6 0006
 * 视频文章
 */
public class ReaderVideoBean extends BaseBean {
    private ResultBean result;

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ResultBean {
        private int totalCount;
        private List<ItemsBean> items;

        public int getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(int totalCount) {
            this.totalCount = totalCount;
        }

        public List<ItemsBean> getItems() {
            return items;
        }

        public void setItems(List<ItemsBean> items) {
            this.items = items;
        }

        public static class ItemsBean implements MultiItemEntity {
            private String id;
            private String title;
            private String contents;
            private String imageUrl;
            private String videoUrl;
            private String cType;
            private String summary;
            private String tags;
            private boolean isFree;

            public boolean isFree() {
                return isFree;
            }

            public void setFree(boolean free) {
                isFree = free;
            }

            public String getTags() {
                return tags;
            }

            public void setTags(String tags) {
                this.tags = tags;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getContents() {
                return contents;
            }

            public void setContents(String contents) {
                this.contents = contents;
            }

            public String getImageUrl() {
                return imageUrl;
            }

            public void setImageUrl(String imageUrl) {
                this.imageUrl = imageUrl;
            }

            public String getVideoUrl() {
                return videoUrl;
            }

            public void setVideoUrl(String videoUrl) {
                this.videoUrl = videoUrl;
            }

            public String getcType() {
                return cType;
            }

            public void setcType(String cType) {
                this.cType = cType;
            }

            public String getSummary() {
                return summary;
            }

            public void setSummary(String summary) {
                this.summary = summary;
            }

            @Override
            public int getItemType() {
                if ("video".equals(cType)) {
                    return 0;
                } else
                    return 1;
            }
        }
    }
}